<template>
  <view class="btn_del" @click="handleDelete">
    删除
  </view>
</template>

<script>
export default {
  name: "DeleteButton",
  methods: {
    handleDelete() {
      this.$emit('delete');
    }
  }
};
</script>

<style scoped>
/* 删除按钮样式 */
.btn_del {
  width: 80px;
  background: #ff3b30;
  color: #fff;
  font-size: 32rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}
</style>